package com.iooiee;


import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: Yanggc
 * DateTime: 2020-05-24
 */
@Component
public class CalculateImpl implements Calculate {

	@Override
	public int add(int numA, int numB) {
		System.out.println("执行目标方法：add");
		return numA+numB;
	}

	@Override
	public int reduce(int numA, int numB) {
		System.out.println("执行目标方法：reduce");
		return numA-numB;
	}
}
